package com.vmladenov.cook.core.loaders;

import java.util.ArrayList;

import com.vmladenov.cook.core.Helpers;
import com.vmladenov.cook.core.html.SmallPreview;

public class RecipesByCategoryLoader extends ISmallPreviewLoader
{
	private final int type;
	private final ArrayList<String> products;

	public RecipesByCategoryLoader(long categoryId, int type, ArrayList<String> products)
	{
		this.type = type;
		this.products = products;
	}

	@Override
	public Boolean hasMore()
	{
		return false;
	}

	@Override
	public ArrayList<SmallPreview> getNextData()
	{
		switch (type)
		{
			case 3:
				return Helpers.getDataHelper().RecipesRepository.getRecipesByProducts(products);
			default:
				return null;
		}
	}
}
